//
//  ViewController.m
//  SFImageMakerDemo
//
//  Created by Riven on 2025/10/29.
//

#import "ViewController.h"
//#import <SFImageMaker/SFImageMaker.h>
@import SFImageMaker;
@import BRPickerView;

@interface ViewController ()

@property (strong, nonatomic) UIButton *cornerBorderButton;
@property (strong, nonatomic) UIButton *gradientButton;
@property (strong, nonatomic) UIButton *avatarButton;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _cornerBorderButton = [[UIButton alloc] init];
    
    [[self view] addSubview:_cornerBorderButton];
    
    self.cornerBorderButton.frame = CGRectMake(100, 100, 100, 100);
    UIImage *bgImage = UIColor.yellowColor.sf_flow.corner(10, UIRectCornerAllCorners).border(0.5, UIColor.blackColor).image;
//    [self.cornerBorderButton setBackgroundImage:bgImage forState:UIControlStateNormal];
    [self.cornerBorderButton setImage:bgImage forState:UIControlStateNormal];
}


@end
